package cn.ainit.cw.cwcost;


import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ainit.common.ReturnObject;

@Service
public class CwCostServiceImpl implements CwCostService{
	
	CwCostDao costDao;
	
	@Resource
	public void setCostDao(CwCostDao costDao) {
		this.costDao = costDao;
	}
	@Override
	public boolean saveFinCost(CwCosts finCost) throws Exception {
		return costDao.saveFinCost(finCost);
	}
	@Override
	public CwCosts toUpdateCost(String costId) throws Exception {
		return costDao.toUpdateCost(costId);
	}
	@Override
	public boolean updApply(String sql) throws Exception {
		return costDao.updApply(sql);
	}
	@Override
	public boolean updateCost(CwCosts finCosts) throws Exception {
		return costDao.updateCost(finCosts);
	}
	@Override
	public boolean execFinCost(String costId, String costType, String djCode)
			throws Exception {
		return costDao.execFinCost(costId, costType, djCode);
	}
	@Override
	public String varFinCost(String sql) throws Exception {
		return this.costDao.varFinCost(sql);
	}
	@Override
	public int execFinCostInt(String sql) throws Exception {
		return this.costDao.execFinCostInt(sql);
	}
	@Override
	public String newFY(String costId,String manId) throws Exception {
		return this.costDao.newFY(costId,manId);
	}
	
	@Override
	public ReturnObject newPay(String costId,String manId) throws Exception {
		return this.costDao.newPay(costId,manId);
	}
	@Override
	public ReturnObject bxfyNewPay(String costId, String manId)
			throws Exception {
		return this.costDao.bxfyNewPay(costId, manId);
	}
	@Override
	public ReturnObject bxfyNewCZ(String costId, String manId) throws Exception {
		return this.costDao.bxfyNewCZ(costId, manId);
	}
	@Override
	public ReturnObject bxfyNewJKHK(String costId, String manId)
			throws Exception {
		return this.costDao.bxfyNewJKHK(costId, manId);
	}
	@Override
	public ReturnObject newYF(String costId, String manId) throws Exception {
		return this.costDao.newYF(costId, manId);
	}
	@Override
	public ReturnObject newHK(String costId, String manId) throws Exception {
		return this.costDao.newHK(costId, manId);
	}
	@Override
	public List execSql(String sql) throws Exception {
		return this.costDao.execSql(sql);
	}
	@Override
	public ReturnObject jsNewKPFunc(String jsId, String manId) throws Exception {
		return this.costDao.jsNewKPFunc(jsId, manId);
	}
	
	@Override
	public Integer qrtx(List costIds) throws Exception {
		return costDao.qrtx(costIds);
	}
	@Override
	public ReturnObject kpNewSKFunc(String kpId, String manId) throws Exception {
		return this.costDao.kpNewSKFunc(kpId, manId);
	}
}
